import backtop from 'components/context/backtop/BackTop.vue'

export const backTopMixin = {
    data() {
        return {
            isShowBackTop: false
        }
    },
    components: {
        backtop
    },
    methods: {
        backClick() {
            this.$refs.bscroll.scrollTo(0, 0, 500)
        },
        isShowBackTopFunc(position) {
            this.isShowBackTop = -position.y > 1000
        }
    }
}